package com.jiaai.live.model;

import com.jiaai.member.model.VMember;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.net.URLEncoder;
import java.util.List;

/**
 * <p>
 * TODO
 * </p>
 *
 * @author 佳爱网络科技
 * @version V1.0
 * @title LivePushInfo
 * @since 2017/10/30
 */
public class LivePushInfo  implements Serializable{
    /**
     * 直播间编号
     */
    private Integer liveId;
    /**
     * 主播编号
     */
    private  String anchorId;
    /**
     * 主播等级
     */
    private  Integer level;

    /**
     * 服务器地址
     */
    private String pushUrl;

    /**
     * 直播间公告
     */
    private  String liveNotice;
    /**
     * 平台公告
     */
    private  String platformNotice;
    /**
     * 分享模板
     */
    private  String shareTemplate;


    public Integer getLiveId() {
        return liveId;
    }

    public void setLiveId(Integer liveId) {
        this.liveId = liveId;
    }

    public String getAnchorId() {
        return anchorId;
    }

    public void setAnchorId(String anchorId) {
        this.anchorId = anchorId;
    }

    public Integer getLevel() {
        return level;
    }

    public void setLevel(Integer level) {
        this.level = level;
    }

    public String getPushUrl() {
        try {
            return URLEncoder.encode(pushUrl,"utf-8");
        } catch (UnsupportedEncodingException e) {
            e.printStackTrace();
            return null;
        }
    }

    public void setPushUrl(String pushUrl) {
        this.pushUrl = pushUrl;
    }

    public String getLiveNotice() {
        return liveNotice;
    }

    public void setLiveNotice(String liveNotice) {
        this.liveNotice = liveNotice;
    }

    public String getPlatformNotice() {
        return platformNotice;
    }

    public void setPlatformNotice(String platformNotice) {
        this.platformNotice = platformNotice;
    }

    public String getShareTemplate() {
        return shareTemplate;
    }

    public void setShareTemplate(String shareTemplate) {
        this.shareTemplate = shareTemplate;
    }
}
